let pro = new Promise((resolve,reject)=>{
    setTimeout(()=>{
        if(true){
            resolve('right')
        }
        else{
            reject('false')
        }
    },1000)
})


pro.then((res)=>{console.log(res)}).catch((err)=>{console.log(err)})